<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title><?php echo $_tpl['title'];?>-首页</title>
<meta content="" name="keywords"/>
<meta content="" name="description"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/assets/css/style.css" rel="stylesheet"/>
</head>
<body>
<div class="bigWrap">
<div class="topWrap">
  <div class="top">
    <div class="bdLogo"></div>
    <div class="userInfo">
      <?php if($_COOKIE['uid']){?>
      <div class="logStatus"> <a href="<?php echo Qtpl::createUrl('user', 'index');?>"><?php echo $_COOKIE['name']?></a> <a href="<?php echo Qtpl::createUrl('user', 'notice');?>">通知(<?php echo intval($_COOKIE['_notice']);?>)</a> <a href="<?php echo Qtpl::createUrl('user', 'logout');?>" class="logoutBtn">[退出]</a> </div>
      <?php }else{?>
      <div class="logStatus">
       <a href="<?php echo Qtpl::createUrl('user', 'login');?>">登录</a> 
       <a href="<?php echo Qtpl::createUrl('user', 'register');?>">注册</a>
      </div>
       <?php }?>
    </div>
  </div>
</div>
<div class="bannerWrap">
  <div class="banner">
    <ul class="bannerCont">
      <li class="<?php echo $_tpl['index'];?>"> <a href="<?php echo Qtpl::createUrl('index', 'index');?>" class="bannerTab">首页</a> </li>
      <li class="<?php echo $_tpl['news'];?>"> <a href="<?php echo Qtpl::createUrl('news', 'index');?>" class="bannerTab">新闻公告</a> </li>
      <li class="<?php echo $_tpl['bug'];?>"> <a href="<?php echo Qtpl::createUrl('bug', 'sub');?>" class="bannerTab">漏洞提交</a> </li>
      <li class="<?php echo $_tpl['gift'];?>"> <a href="<?php echo Qtpl::createUrl('gift', 'index');?>" class="bannerTab">礼品兑换</a> </li>
      <?php if($_COOKIE['uid']){?><li class="<?php echo $_tpl['user'];?>"> <a href="<?php echo Qtpl::createUrl('user', 'index');?>" class="bannerTab">个人中心</a> </li><?php }?>
    </ul>
  </div>
</div>